package com.common.user.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.common.user.domain.Organization;

public interface OrganizationRepository extends JpaRepository<Organization, Long> {
	
	/**
	 * Find all child Organization by parent Organization.
	 * @param id
	 * @return
	 */
	List<Organization> findAllByParentId(Long id);
}
